package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "shop_product_grade")
public class ShopProductGrade {
    @Id
    private Integer id;

    /**
     * 库存 单位:吨
     */
    private BigDecimal stock;

    /**
     * 库存预警线  单位:吨
     */
    @Column(name = "stock_warning_line")
    private BigDecimal stockWarningLine;

    private Integer status;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "product_id")
    private Integer productId;

    private String grade;

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取库存 单位:吨
     *
     * @return stock - 库存 单位:吨
     */
    public BigDecimal getStock() {
        return stock;
    }

    /**
     * 设置库存 单位:吨
     *
     * @param stock 库存 单位:吨
     */
    public void setStock(BigDecimal stock) {
        this.stock = stock;
    }

    /**
     * 获取库存预警线  单位:吨
     *
     * @return stock_warning_line - 库存预警线  单位:吨
     */
    public BigDecimal getStockWarningLine() {
        return stockWarningLine;
    }

    /**
     * 设置库存预警线  单位:吨
     *
     * @param stockWarningLine 库存预警线  单位:吨
     */
    public void setStockWarningLine(BigDecimal stockWarningLine) {
        this.stockWarningLine = stockWarningLine;
    }

    /**
     * @return status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * @return product_id
     */
    public Integer getProductId() {
        return productId;
    }

    /**
     * @param productId
     */
    public void setProductId(Integer productId) {
        this.productId = productId;
    }
}